Remove C99-ism.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 10 May 2005 02:55:52 +0000 (02:55 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 10 May 2005 02:55:52 +0000 (02:55 +0000)
gpsbabel/pathaway.c

index 2e134ec48817e2da13c7be3e51714d4a2fec7901..65b926dcf6e765a77ba5824fcfa964960bec9d62 100644 (file)
@@ -62,6 +62,7 @@ ppdb_read(void)
        int latdeg, longdeg;
        double latval, longval, altfeet;
        struct tm dttm;
+       route_head *track_head;
 
        if (NULL == (pdb = pdb_Read(fileno(fd)))) {
                fatal(MYNAME ": pdb_Read failed\n");
@@ -75,7 +76,7 @@ ppdb_read(void)
               fatal(MYNAME ": This file is from an untested version of PathAway and is unsupported.\n");
         }
 
-       route_head *track_head = route_head_alloc();
+       track_head = route_head_alloc();
        track_add_head(track_head);
 
        track_head->rte_name = xstrdup(pdb->name);